<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
      <!-- 编写一个函数，计算三个数字的大小，按从小到大的顺序输出 -->
      <script>
        function fn(a, b, c) {
            if (a > b && b > c) {
                console.log(a, b, c);
            }
            else if (a > c && c > b) {
                console.log(a, c, b);
            }
            else if (b > a && a > c) {

                console.log(b, a, c);
            }
            else if(b>c  && c>a){
                console.log(b,c,a);
            }
            else if (c > b && b > a) {
                console.log(c, b, a);
            }
            else if(c > a && a >b ){
                console.log(c,a,b);
            }else{
                console.log("错误");
            }
        }
        fn(3,5,1)
    </script
</body>
</html>